import 'package:json_annotation/json_annotation.dart';

part 'point_exchange_history_res.g.dart';

@JsonSerializable()
class PointExchangeHistoryRes {
  final int id;
  final String inAccountType; // 兑入账户类型
  final String inAccountTypeName; // 兑入账户类型名称
  final String outAccountType; // 兑出账户类型
  final String outAccountTypeName; // 兑出账户类型名称
  final String outAmount; // 兑出额度
  final String inAmount; // 兑入额度
  final String note; // 兑换备注
  final String createTime; // 兑换时间

  PointExchangeHistoryRes(
    this.id,
    this.inAccountType,
    this.inAccountTypeName,
    this.outAccountType,
    this.outAccountTypeName,
    this.outAmount,
    this.inAmount,
    this.note,
    this.createTime,
  );
  factory PointExchangeHistoryRes.fromJson(Map<String, dynamic> json) =>
      _$PointExchangeHistoryResFromJson(json);

  Map<String, dynamic> toJson() => _$PointExchangeHistoryResToJson(this);
}
